﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProductSelect.aspx.cs" Inherits="OperaEntry_MakerSelect" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>商品选择</title>
    <link rel="stylesheet" type="text/css" href="../Css/OperaSheet.css" />
</head>
<body>
    <form id="form1" runat="server">
    
    <div style="margin :0px auto; width:850px;">
        <div><asp:Label ID="MessageLabel" Text="请输入过滤条件：" runat="server"></asp:Label></div>
        <br style=" clear:both;" />
        <div>
            <ul>
                <li class="li_common" style="width:50px; height:20px; vertical-align:middle;">商品编号</li>
                <li class="li_common" style="width:60px;height:20px;"><span>
                    <asp:TextBox runat="server" Width="40" ID="txtProductId"></asp:TextBox></span></li>
                <li class="li_common" style="width:50px;height:20px;vertical-align:middle;" >商品名称</li>
                <li class="li_common" style="width:90px;height:20px;"><asp:TextBox runat="server" 
                        Width="70" ID="txtProductName"></asp:TextBox></li>
                <li class="li_common" style="width:70px;height:20px;"><asp:Button runat="server" 
                        Text="过虑" ID="btnEdit" onclick="btnEdit_Click"/></li>
            </ul>
        </div>
        <br style=" clear:both;" />
        <div>
            <asp:GridView ID="grdMaker" runat="server" AutoGenerateColumns="False" 
                BackColor="White" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" 
                CellPadding="0" Width="843px" onrowdatabound="grdMaker_RowDataBound" 
                Font-Size="12px">
                <FooterStyle BackColor="White" ForeColor="#000066" />
                <RowStyle ForeColor="#000066" />
                <Columns>
                    
                    <asp:HyperLinkField HeaderText="选择" Text="选择" 
                        FooterStyle-HorizontalAlign="Center">
    <FooterStyle HorizontalAlign="Center"></FooterStyle>
                        <ItemStyle HorizontalAlign="Center" Width="30px" />
                    </asp:HyperLinkField>
                    
                    <asp:BoundField ControlStyle-Width="80" DataField="productid" 
                        HeaderText="商品编号" >
    <ControlStyle Width="20px"></ControlStyle>
                        <ItemStyle HorizontalAlign="Right" Width="55px" />
                    </asp:BoundField>
                    <asp:BoundField ControlStyle-Width="100" DataField="productname"  FooterStyle-HorizontalAlign="Right"
                        HeaderText="商品名称" >
                        <ControlStyle Width="100px" ></ControlStyle>

    <FooterStyle HorizontalAlign="Right"></FooterStyle>
                        <ItemStyle Width="150px" />
                    </asp:BoundField>
                    <asp:BoundField ControlStyle-Width="200" DataField="makername" HeaderText="厂家" >
                         <ControlStyle Width="200px"></ControlStyle>
                         <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField ControlStyle-Width="50" DataField="price" HeaderText="订价" >
                        <ControlStyle Width="30px"></ControlStyle>
                        <ItemStyle HorizontalAlign="Right" Width="40px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="onstock" HeaderText="存量">
                        <ControlStyle Width="30px" />
                        <ItemStyle HorizontalAlign="Right" Width="40px" />
                    </asp:BoundField>
                    <asp:BoundField ControlStyle-Width="300" DataField="description" 
                        HeaderText="备注" >
                        <ControlStyle Width="300px"></ControlStyle>
                    </asp:BoundField>
                </Columns>
                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
            </asp:GridView>
        
        </div>
    </div>
    
    </form>
    <script type="text/javascript">
    function selectNode(key,value) {
        if(window.opener) {
            var keyCtl = window.opener.document.getElementById('<%= Request.Params["keyCtl"] %>');
            var valueCtl = window.opener.document.getElementById('<%= Request.Params["valueCtl"] %>');
            if(keyCtl) keyCtl.value = key;
            if(valueCtl) valueCtl.value = value;
            eval('window.opener.<%= Request.Params["JSCallBack"] %>();');
            window.opener = null;
            window.close();
        }
    }
    </script>
</body>
</html>
